﻿<frame:CFrame  x:Class="VAdvantage.Apps.AddChartToTab" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d" Title="Add Chart"
              xmlns:local="clr-namespace:VAdvantage.Controls"
              xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                 xmlns:frame="clr-namespace:VAdvantage.Apps"
                 xmlns:provider="clr-namespace:SilverlightDesktop.Controls;assembly=SilverlightDesktop" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:my="clr-namespace:VAdvantage.Controls" Height="205" Width="564">

    <Grid x:Name="LayoutRoot" >
        <Grid Name="grid1"  >
            <Grid.RowDefinitions>
                <RowDefinition Height="32" />
                <RowDefinition Height="32" />
                <RowDefinition Height="32" />
                <RowDefinition Height="32" />
                <RowDefinition Height="40" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="103" />
                <ColumnDefinition Width="138*" />
                <ColumnDefinition Width="102" />
                <ColumnDefinition Width="158*" />
            </Grid.ColumnDefinitions>
            <my:VComboBox Grid.Column="1" Grid.Row="1" Margin="0,5,5,0" TabIndex="0" x:Name="vCharts" Grid.ColumnSpan="3" />
            <my:VComboBox Grid.Column="1" Grid.Row="0" Margin="0,5,5,0" TabIndex="1"  x:Name="vTabs" Grid.ColumnSpan="3" />
            <my:VLabel Height="22" Grid.Row="1" Margin="12,8,0,2" x:Name="lblCharts" Width="Auto" HorizontalAlignment="Left" />
            <my:VLabel Grid.Row="0" Height="24" Margin="12,8,0,0" x:Name="lblTabs" Width="Auto" HorizontalAlignment="Left" />
            <my:VLabel Grid.Row="2" Grid.Column="2" Height="22" Margin="12,12,8,6" x:Name="lblRows" Width="Auto" HorizontalAlignment="Left" />
            <my:VTextBox Grid.Column="3" Grid.Row="2" TabIndex="3" Margin="0,5,5,0" x:Name="txtRows" />
            <my:VLabel Grid.Column="0" Grid.Row="2" Height="22" Margin="11,8,0,0" x:Name="lblCols" Width="Auto" HorizontalAlignment="Left" />
            <my:VTextBox Grid.Column="1" TabIndex="2" Grid.Row="2" Margin="0,5,0,0" x:Name="txtCols" />

            <StackPanel Grid.Row="4" Grid.ColumnSpan="4" Name="stackPanel1" Orientation="Horizontal" FlowDirection="RightToLeft" Margin="0,0,5,5">
                <my:VButton Margin="0,0,5,0" Height="35" x:Name="btnOk" Width="35" Click="btnOk_Click" >
                    <Image Source="/VAdvantage;component/Images/right_up.png" Stretch="Fill"></Image>
                </my:VButton>
                <my:VButton Margin="0,0,5,0" Height="35" x:Name="btnCancel" Width="35" Click="btnCancel_Click" >
                    <Image Source="/VAdvantage;component/Images/cancel_up.png" Stretch="Fill"></Image>
                </my:VButton>
            </StackPanel>
            <my:VLabel Grid.Row="3" x:Name="lblSeq" Margin="11,4,0,4" Width="Auto" HorizontalAlignment="Left" />
            <my:VTextBox Grid.Column="1" Grid.Row="3" x:Name="txtSeq" TabIndex="4"  />
        </Grid>

        <Grid x:Name="busyWindow" Opacity=".4" Background="LightGray" Visibility="Visible" >
            <TextBlock x:Name="txtBusy" FontSize="20" FontStyle="Italic" Visibility="Collapsed" HorizontalAlignment="Center" Text="Loading...." VerticalAlignment="Center"></TextBlock>
        </Grid>

    </Grid>
</frame:CFrame>